//
//  XYSystem.m
//  ZhaoQiPei
//
//  Created by baiye on 2017/1/24.
//  Copyright © 2017年 XiangYun. All rights reserved.
//

#import "XYSystem.h"

#if (TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR)

const BOOL IOS12_OR_LATER = ([[[UIDevice currentDevice] systemVersion] floatValue] >= 12.0);
const BOOL IOS11_OR_LATER = ([[[UIDevice currentDevice] systemVersion] floatValue] >= 11.0);
const BOOL IOS10_OR_LATER = ([[[UIDevice currentDevice] systemVersion] floatValue] >= 10.0);
const BOOL IOS9_OR_LATER = ([[[UIDevice currentDevice] systemVersion] floatValue] >= 9.0);
const BOOL IOS8_OR_LATER = ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0);
const BOOL IOS7_OR_LATER = ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0);
const BOOL IOS6_OR_LATER = ([[[UIDevice currentDevice] systemVersion] floatValue] >= 6.0);
const BOOL IOS5_OR_LATER = ([[[UIDevice currentDevice] systemVersion] floatValue] >= 5.0);
const BOOL IOS4_OR_LATER = ([[[UIDevice currentDevice] systemVersion] floatValue] >= 4.0);
const BOOL IOS3_OR_LATER = ([[[UIDevice currentDevice] systemVersion] floatValue] >= 3.0);

const BOOL IOS11_OR_EARLIER = !IOS12_OR_LATER;
const BOOL IOS10_OR_EARLIER = !IOS11_OR_LATER;
const BOOL IOS9_OR_EARLIER = !IOS10_OR_LATER;
const BOOL IOS8_OR_EARLIER = !IOS9_OR_LATER;
const BOOL IOS7_OR_EARLIER = !IOS8_OR_LATER;
const BOOL IOS6_OR_EARLIER = !IOS7_OR_LATER;
const BOOL IOS5_OR_EARLIER = !IOS6_OR_LATER;
const BOOL IOS4_OR_EARLIER = !IOS5_OR_LATER;
const BOOL IOS3_OR_EARLIER = !IOS4_OR_LATER;

#else

const BOOL IOS12_OR_LATER = NO;
const BOOL IOS11_OR_LATER = NO;
const BOOL IOS10_OR_LATER = NO;
const BOOL IOS9_OR_LATER = NO;
const BOOL IOS8_OR_LATER = NO;
const BOOL IOS7_OR_LATER = NO;
const BOOL IOS6_OR_LATER = NO;
const BOOL IOS5_OR_LATER = NO;
const BOOL IOS4_OR_LATER = NO;
const BOOL IOS3_OR_LATER = NO;

const BOOL IOS11_OR_EARLIER = NO;
const BOOL IOS10_OR_EARLIER = NO;
const BOOL IOS9_OR_EARLIER = NO;
const BOOL IOS8_OR_EARLIER = NO;
const BOOL IOS7_OR_EARLIER = NO;
const BOOL IOS6_OR_EARLIER = NO;
const BOOL IOS5_OR_EARLIER = NO;
const BOOL IOS4_OR_EARLIER = NO;
const BOOL IOS3_OR_EARLIER = NO;

#endif
